package com.jy.adscm.serviceProvider.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zyl
 * @Date 2019/1/27 -10:43
 */
public class JyServiceChart {
    private  Integer id;
    private  String  dealer;
    private  String  hospital;
    private  String  department;
    private  String  serviceType;
    private  Date   applicantTime;
    private  Date   serviceDate;
    private  String  state;
    /**
     * 经度
     */
    private Double   longitude;
    /**
     * 纬度
     */
    private Double   latitude;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getApplicantTime() {
        return applicantTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setApplicantTime(Date applicantTime) {
        this.applicantTime = applicantTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getServiceDate() {
        return serviceDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setServiceDate(Date serviceDate) {
        this.serviceDate = serviceDate;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    @Override
    public String toString() {
        return "JyServiceChart{" +
                "id=" + id +
                ", dealer='" + dealer + '\'' +
                ", hospital='" + hospital + '\'' +
                ", department='" + department + '\'' +
                ", serviceType='" + serviceType + '\'' +
                ", applicantTime=" + applicantTime +
                ", serviceDate=" + serviceDate +
                ", state='" + state + '\'' +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                '}';
    }
}
